﻿Jxstar.currentPage = function() {
	var config = {param:{},initpage:function(page, define){},eventcfg:{}};

	var cols = [
	{col:{header:'合同编号', width:100, sortable:true}, field:{name:'contract__contract_code',type:'string'}},
	{col:{header:'合同名称', width:269, sortable:true}, field:{name:'contract__contract_name',type:'string'}},
	{col:{header:'供应商', width:155, sortable:true}, field:{name:'contract__provider_name',type:'string'}},
	{col:{header:'设备名称', width:100, sortable:true}, field:{name:'contract_device__device_name',type:'string'}},
	{col:{header:'规格型号', width:100, sortable:true}, field:{name:'contract_device__models',type:'string'}},
	{col:{header:'制造商', width:100, sortable:true}, field:{name:'contract_device__maker',type:'string'}},
	{col:{header:'机型', width:100, sortable:true}, field:{name:'contract_device__version',type:'string'}},
	{col:{header:'设备分类', width:100, sortable:true}, field:{name:'contract_device__device_type',type:'string'}},
	{col:{header:'单价(万元)', width:100, sortable:true, renderer:JxUtil.formatNumber(2)}, field:{name:'contract_device__price',type:'float'}},
	{col:{header:'数量', width:100, sortable:true, renderer:JxUtil.formatInt()}, field:{name:'contract_device__amount',type:'int'}},
	{col:{header:'总额(万元)', width:100, sortable:true, renderer:JxUtil.formatNumber(2)}, field:{name:'contract_device__total_price',type:'float'}},
	{col:{header:'合同ID', width:100, sortable:true, hidden:true}, field:{name:'contract_device__contract_id',type:'string'}},
	{col:{header:'主键', width:100, sortable:true, hidden:true}, field:{name:'contract_device__device_id',type:'string'}},
	{col:{header:'供应商ID', width:100, sortable:true, hidden:true}, field:{name:'contract__provider_id',type:'string'}}
	];
	
	config.param = {
		cols: cols,
		sorts: null,
		hasQuery: '1',
		isedit: '0',
		isshow: '1',
		funid: 'device_pricequery'
	};
	
	
		
	return new Jxstar.GridNode(config);
}